package com.xiaoshuidi.cloud.module.member.convert.card;

import com.xiaoshuidi.cloud.module.member.controller.app.card.vo.MemberUserBankCardDto;
import com.xiaoshuidi.cloud.module.member.controller.app.card.vo.MemberUserBankCardForm;
import com.xiaoshuidi.cloud.module.member.controller.app.card.vo.MemberUserBankCardVo;
import com.xiaoshuidi.cloud.module.member.pojo.card.MemberUserBankCardEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MemberUserBankCardConvert {

    MemberUserBankCardConvert INSTANCE = Mappers.getMapper(MemberUserBankCardConvert.class);

    List<MemberUserBankCardVo> convertList(List<MemberUserBankCardDto> list);

    MemberUserBankCardVo convert(MemberUserBankCardDto value);
    MemberUserBankCardEntity convert(MemberUserBankCardForm form);
}
